package com.ssy.lingxi.order.model.vo.common.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 商品上架指引 - 查询商品是否配置了交易流程接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2022-01-17
 */
public class OrderProductProcessVO implements Serializable {
    private static final long serialVersionUID = 3683462267336151614L;

    /**
     * 商城Id列表
     */
    @NotEmpty(message = "商城Id列表不能为空")
    private List<Long> shopIds;

    /**
     * 商城类型
     */
    @NotNull(message = "商城类型不能为空")
    @Positive(message = "商城类型不能为空")
    private Integer shopType;

    /**
     * 商品列表
     */
    @NotEmpty(message = "商品列表不能为空")
    @Valid
    private List<OrderProductPriceTypeVO> products;

    public List<Long> getShopIds() {
        return shopIds;
    }

    public void setShopIds(List<Long> shopIds) {
        this.shopIds = shopIds;
    }

    public Integer getShopType() {
        return shopType;
    }

    public void setShopType(Integer shopType) {
        this.shopType = shopType;
    }

    public List<OrderProductPriceTypeVO> getProducts() {
        return products;
    }

    public void setProducts(List<OrderProductPriceTypeVO> products) {
        this.products = products;
    }
}
